/**
 * @projectName CollegeEmploymentNetwork
 * @package com.kzj.CollegeEmploymentNetwork.shiro.enums
 * @className com.kzj.CollegeEmploymentNetwork.shiro.enums.UserStatusEnum
 * @copyright Copyright 2025 Thunisoft, Inc All rights reserved.
 */
package com.kzj.CollegeEmploymentNetwork.shiro.enums;

/**
 * UserStatusEnum
 * @description
 * @author KZJ
 * @date 2025/1/24 18:09
 * @version TODO
 */
public enum UserStatusEnum {
    IN_USE(1,"启用中"),
    DISABLED(0,"禁用中");
    private Integer code;
    private String desc;
    private UserStatusEnum(Integer code,String desc){
        this.code=code;
        this.desc=desc;
    }
    public boolean is(Object object){
        boolean result=super.equals(object);
        if(result)
            return result;
        else if(object instanceof Integer)
        {
            return this.code.equals(object);
        }
        return false;
    }
}